package zy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Duixiang {
    public static void main(String[] args) {
        List<Map<String, Object>> l = new ArrayList<>();

        Map<String, Object> m = new HashMap<>();
        m.put("name", "牢大");
        m.put("id", 1);
        m.put("age", 25);
        l.add(m);

        Map<String, Object> m2 = new HashMap<>();
        m2.put("name", "牢二");
        m2.put("id", 2);
        m2.put("age", 18);
        l.add(m2);
        for (Map<String, Object> map : l){
            System.out.println(map);

        }
    }
}
